class Solution {
public:
    int Max(vector<int>& nums) {
        return std::max(nums.begin(), nums.end());
    }
};

#include <iostream>
#include <string>
#include <cstring>
#include <stdio.h>
#include <vector>
#include <map>
#include <algorithm>

using namespace std;
#ifndef HEADER

#include "./header.cpp"

#endif

void Test1()
{
    int a[] = {2,7,11,15};
    vector<int> nums(a, 4);
    int ret = Solution.Max(nums);
    if(ret == 15)
    {
        cout << "通过测试用例1， 测试用例{2,7,11,15}...  通过！" << endl;
    }
    else
    {
        cout << "没有通过测试用例1， 测试用例值为：{2,7,11,15} "<<endl;
    }
}

void Test2()
{
    int a[] = {23,34,45,12,3,-1,43,343434};
    vector<int> nums(a, 8);
    int ret = Solution.Max(nums);
    if(ret == 343434)
    {
        cout << "通过测试用例2， 测试用例{23,34,45,12,3,-1,43,343434}...  通过！" << endl;
    }
    else
    {
        cout << "没有通过测试用例2， 测试用例值为：{23,34,45,12,3,-1,43,343434} "<<endl;
    }
}
int main()
{
    Test1();
    Test2();
    return 0;
}
